import request from '@/utils/request'


// 查询证书列表
export function listCertificate(query) {
    return request({
        url: '/system/certificate/all',
        method: 'get',
        params: query
    })
}
// 删除证书
export function delCertificate(id) {
    return request({
        url: '/system/certificate/' + id,
        method: 'delete'
    })
}

// 添加证书
export function addCertificate(data) {
    return request({
        url: 'system/certificate/add',
        method: 'post',
        data: data
    })
}

// 查询证书
export function qeuryCertificate(id) {
    return request({
        url: '/system/certificate/' + id,
        method: 'get'
    })
}

// 修改证书
export function updateCertificate(data) {
    return request({
        url: 'system/certificate/update',
        method: 'put',
        data: data
    })
}
